<?php
/**
 * Created on 17 mars 08 by Eric Jeker <eric.jeker@gmail.com>
 * Created on Eclipse 3.2 with PHPEclipse 1.1.8
 * (c) 2007 - 2008 Copyright Eric Jeker <eric.jeker@gmail.com>
**/
?>

<h1>Challenge Detail</h1>

<? if ($challenge->getIsDraw()) { ?>
	<p><?php echo $challenge->getP1()->getUsername() ?> challenged <?php echo $challenge->getP2()->getUsername() ?> but it's a draw !</p>
<? } else { ?>
	<p><?php echo $challenge->getP1()->getUsername() ?> won a match against <?php echo $challenge->getP2()->getUsername() ?>.</p>

	<h2>Killmail</h2>
	<div id="killmail"><?php echo htmlentities(nl2br($challenge->getKillmail()->getContent())) ?></div>
<? } ?>
